﻿using System;
using System.Collections.Generic;

namespace Quartz.NET.Web.Models
{
    public class ReturnData:Result
    {
        //public int code { get; set; }=0;

        //public string msg { get; set; }

        public int count { get; set; }

        public object data { get; set; }
    }

    /// <summary>
    /// 返回结果
    /// </summary>
    public class Result
    {
        public ResultType code { get; set; } =ResultType.success;

        public string msg { get; set; }
    }

    /// <summary>
    /// 表格分页查询结果
    /// </summary>
    public class TableResult<T>
    {
        public long total { get; set; }

        public List<T> rows { get; set; }
    }
    /// <summary>
    /// 返回结果
    /// </summary>
    public enum ResultType { 
        success,
        fail
    
    }
}
